package com.chenglu.android.supermarket.mvp.contract;



import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.base.BaseView;
import com.chenglu.android.index.bean.BannerBeanList;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.index.bean.PageListBean;
import com.chenglu.android.mine.bean.CollectBean;
import com.chenglu.android.restaurant.bean.RestaurantSearchBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public interface SuperMarkerContract {

    /**
     *
     * @description model
     *
     */

    public interface SuperMarkerModel{


        Observable<PageListBean> getCategoryList(Map<String, String> map);

        Observable<BannerBeanList> getBannerList(String shopsTypeId , String showType);


        Observable<IndexRecomBean> getTabTitleData(Map<String,String> map);

        Observable<IndexRecomBean> getHotsellData(Map<String,String> map);

        //橙鹿餐饮商家列表数据
        Observable<RestaurantSearchBean> getSearchShop(Map<String,String> map);


    }


    /**
     *
     * @description view
     *
     */

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void dismissLoading();

        @Override
        void onEmpty(Object tag);

        @Override
        void onError(String errMessage);

        void getCategoryList(PageListBean bean);

        void getBannerList(BannerBeanList bean);

        void getTabTitleData(IndexRecomBean bean);

        void getHotsellData(IndexRecomBean bean);

        void getSearchShop(RestaurantSearchBean bean);





    }

    /**
     *
     * @description presenter
     *
     */

    interface SuperMarkerPresenter {


        void getCategoryList(Map<String, String> map);

        void getBannerList(String shopsTypeId , String showType);

        void getTabTitleData(Map<String, String> map);


        void getHotsellData(Map<String, String> map);

        void getSearchShop(Map<String, String> map);




    }
}